package com.wilmar.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.wilmar.model.UserEntity;
/**
 * @Title: StudentMapper.java
 * @Package:com.gethub.mapper
 * @Description:这里用一句话描述这个类的作用
 * @author: zhengshunzhi
 * @date    2018年2月8日 上午11:04:32
 * @version V1.0
 */
@Mapper
public interface UserMapper {

    // 注解 @TargetDataSource 不可以在这里使用
    @Select("SELECT * FROM USER2")
    @Results({
            @Result(property = "userSex",  column = "user_sex", javaType = Short.class),
            @Result(property = "nickName", column = "nick_name"),
            @Result(property = "userName", column = "user_name"),
            @Result(property = "passWord", column = "password")
    })
    List<UserEntity> getAll();

}